Debian 9 Stretch
Sponsored Link

Set System Locale
2017/06/20
 
Configure the System Locale of your system like follows.
[1] Replace to your own language on the example below.
root@dlp:~#
apt -y install task-japanese locales-all
# display current settings

root@dlp:~#
   System Locale: LANG=en_US.UTF-8
                  LANGUAGE=en_US:en
       VC Keymap: jp106
      X11 Layout: jp
       X11 Model: jp106
     X11 Options: terminate:ctrl_alt_bksp

# display the list of locale

root@dlp:~#
localectl list-locales

C.UTF-8
aa_DJ
aa_DJ.utf8
aa_ER
...
...
zh_TW.utf8
zu_ZA
zu_ZA.utf8

# set locale

root@dlp:~#
localectl set-locale LANG=ja_JP.UTF-8 LANGUAGE="ja_JP:ja"
# show settings

root@dlp:~#
   System Locale: LANG=ja_JP.UTF-8
                  LANGUAGE=ja_JP:ja
       VC Keymap: jp106
      X11 Layout: jp
       X11 Model: jp106
     X11 Options: terminate:ctrl_alt_bksp

root@dlp:~#
source /etc/default/locale

root@dlp:~#
echo $LANG

ja_JP.UTF-8
 
Tweet